package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FinishMapper;
import com.ruoyi.system.domain.Finish;
import com.ruoyi.system.service.IFinishService;

/**
 * 完工单号Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-02
 */
@Service
public class FinishServiceImpl implements IFinishService 
{
    @Autowired
    private FinishMapper finishMapper;

    /**
     * 查询完工单号
     * 
     * @param id 完工单号主键
     * @return 完工单号
     */
    @Override
    public Finish selectFinishById(Long id)
    {
        return finishMapper.selectFinishById(id);
    }

    /**
     * 查询完工单号列表
     * 
     * @param finish 完工单号
     * @return 完工单号
     */
    @Override
    public List<Finish> selectFinishList(Finish finish)
    {
        return finishMapper.selectFinishList(finish);
    }

    /**
     * 新增完工单号
     * 
     * @param finish 完工单号
     * @return 结果
     */
    @Override
    public int insertFinish(Finish finish)
    {
        return finishMapper.insertFinish(finish);
    }

    /**
     * 修改完工单号
     * 
     * @param finish 完工单号
     * @return 结果
     */
    @Override
    public int updateFinish(Finish finish)
    {
        return finishMapper.updateFinish(finish);
    }

    /**
     * 批量删除完工单号
     * 
     * @param ids 需要删除的完工单号主键
     * @return 结果
     */
    @Override
    public int deleteFinishByIds(Long[] ids)
    {
        return finishMapper.deleteFinishByIds(ids);
    }

    /**
     * 删除完工单号信息
     * 
     * @param id 完工单号主键
     * @return 结果
     */
    @Override
    public int deleteFinishById(Long id)
    {
        return finishMapper.deleteFinishById(id);
    }
}
